var utils = {};

utils.getParamsForSearch = function(frmSearchId)
{
	var params = {};
    
    var list = $(".search");
     
    for(var i = 0; i < list.length; i++)
    {
    	params[list[i].name] = list[i].value;
    }
     
    return params;
}

utils.getParamsStringForRedirect = function()
{
	var result = "";
    
    var list = $(".search", "#header");
     
    for(var i = 0; i < list.length; i++)
    {
    	if(list[i].name != undefined)
    	{
	    	if(result != "")
	    		result += "&";
	    	
	    	result += list[i].name + "=" + list[i].value;
    	}
    }
     
    return result;
}